package com.String;

public class LowandUpWritten {
    public static void main(String[] args) {
        String a = "AAAaaaa12345";
        int upWrite = 0;
        int lowWrite = 0;
        int num = 0;
        for (int i = 0; i < a.length(); i++) {
            char c = a.charAt(i);
            if (c >= 'a' && c <= 'z' ) {
                lowWrite++;
            }else if (c <= 'Z' && c >= 'A') {
                upWrite++;
            }else {
                num++;
            }

        }
        System.out.println("小写" + lowWrite);
        System.out.println("大写" + upWrite);
        System.out.println("数字" + num);
    }
}
